package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PIgnoreExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PIgnoreExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIgnIdIsNull() {
            addCriterion("ign_id is null");
            return (Criteria) this;
        }

        public Criteria andIgnIdIsNotNull() {
            addCriterion("ign_id is not null");
            return (Criteria) this;
        }

        public Criteria andIgnIdEqualTo(Integer value) {
            addCriterion("ign_id =", value, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdNotEqualTo(Integer value) {
            addCriterion("ign_id <>", value, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdGreaterThan(Integer value) {
            addCriterion("ign_id >", value, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ign_id >=", value, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdLessThan(Integer value) {
            addCriterion("ign_id <", value, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdLessThanOrEqualTo(Integer value) {
            addCriterion("ign_id <=", value, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdIn(List<Integer> values) {
            addCriterion("ign_id in", values, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdNotIn(List<Integer> values) {
            addCriterion("ign_id not in", values, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdBetween(Integer value1, Integer value2) {
            addCriterion("ign_id between", value1, value2, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ign_id not between", value1, value2, "ignId");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeIsNull() {
            addCriterion("ign_cag_code is null");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeIsNotNull() {
            addCriterion("ign_cag_code is not null");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeEqualTo(String value) {
            addCriterion("ign_cag_code =", value, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeNotEqualTo(String value) {
            addCriterion("ign_cag_code <>", value, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeGreaterThan(String value) {
            addCriterion("ign_cag_code >", value, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeGreaterThanOrEqualTo(String value) {
            addCriterion("ign_cag_code >=", value, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeLessThan(String value) {
            addCriterion("ign_cag_code <", value, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeLessThanOrEqualTo(String value) {
            addCriterion("ign_cag_code <=", value, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeLike(String value) {
            addCriterion("ign_cag_code like", value, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeNotLike(String value) {
            addCriterion("ign_cag_code not like", value, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeIn(List<String> values) {
            addCriterion("ign_cag_code in", values, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeNotIn(List<String> values) {
            addCriterion("ign_cag_code not in", values, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeBetween(String value1, String value2) {
            addCriterion("ign_cag_code between", value1, value2, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnCagCodeNotBetween(String value1, String value2) {
            addCriterion("ign_cag_code not between", value1, value2, "ignCagCode");
            return (Criteria) this;
        }

        public Criteria andIgnDateIsNull() {
            addCriterion("ign_date is null");
            return (Criteria) this;
        }

        public Criteria andIgnDateIsNotNull() {
            addCriterion("ign_date is not null");
            return (Criteria) this;
        }

        public Criteria andIgnDateEqualTo(Date value) {
            addCriterion("ign_date =", value, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateNotEqualTo(Date value) {
            addCriterion("ign_date <>", value, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateGreaterThan(Date value) {
            addCriterion("ign_date >", value, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateGreaterThanOrEqualTo(Date value) {
            addCriterion("ign_date >=", value, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateLessThan(Date value) {
            addCriterion("ign_date <", value, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateLessThanOrEqualTo(Date value) {
            addCriterion("ign_date <=", value, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateIn(List<Date> values) {
            addCriterion("ign_date in", values, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateNotIn(List<Date> values) {
            addCriterion("ign_date not in", values, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateBetween(Date value1, Date value2) {
            addCriterion("ign_date between", value1, value2, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnDateNotBetween(Date value1, Date value2) {
            addCriterion("ign_date not between", value1, value2, "ignDate");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdIsNull() {
            addCriterion("ign_operator_id is null");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdIsNotNull() {
            addCriterion("ign_operator_id is not null");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdEqualTo(Integer value) {
            addCriterion("ign_operator_id =", value, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdNotEqualTo(Integer value) {
            addCriterion("ign_operator_id <>", value, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdGreaterThan(Integer value) {
            addCriterion("ign_operator_id >", value, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ign_operator_id >=", value, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdLessThan(Integer value) {
            addCriterion("ign_operator_id <", value, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdLessThanOrEqualTo(Integer value) {
            addCriterion("ign_operator_id <=", value, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdIn(List<Integer> values) {
            addCriterion("ign_operator_id in", values, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdNotIn(List<Integer> values) {
            addCriterion("ign_operator_id not in", values, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdBetween(Integer value1, Integer value2) {
            addCriterion("ign_operator_id between", value1, value2, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ign_operator_id not between", value1, value2, "ignOperatorId");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccIsNull() {
            addCriterion("ign_operator_acc is null");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccIsNotNull() {
            addCriterion("ign_operator_acc is not null");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccEqualTo(String value) {
            addCriterion("ign_operator_acc =", value, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccNotEqualTo(String value) {
            addCriterion("ign_operator_acc <>", value, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccGreaterThan(String value) {
            addCriterion("ign_operator_acc >", value, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccGreaterThanOrEqualTo(String value) {
            addCriterion("ign_operator_acc >=", value, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccLessThan(String value) {
            addCriterion("ign_operator_acc <", value, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccLessThanOrEqualTo(String value) {
            addCriterion("ign_operator_acc <=", value, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccLike(String value) {
            addCriterion("ign_operator_acc like", value, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccNotLike(String value) {
            addCriterion("ign_operator_acc not like", value, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccIn(List<String> values) {
            addCriterion("ign_operator_acc in", values, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccNotIn(List<String> values) {
            addCriterion("ign_operator_acc not in", values, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccBetween(String value1, String value2) {
            addCriterion("ign_operator_acc between", value1, value2, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnOperatorAccNotBetween(String value1, String value2) {
            addCriterion("ign_operator_acc not between", value1, value2, "ignOperatorAcc");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdIsNull() {
            addCriterion("ign_ity_id is null");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdIsNotNull() {
            addCriterion("ign_ity_id is not null");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdEqualTo(Integer value) {
            addCriterion("ign_ity_id =", value, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdNotEqualTo(Integer value) {
            addCriterion("ign_ity_id <>", value, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdGreaterThan(Integer value) {
            addCriterion("ign_ity_id >", value, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ign_ity_id >=", value, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdLessThan(Integer value) {
            addCriterion("ign_ity_id <", value, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdLessThanOrEqualTo(Integer value) {
            addCriterion("ign_ity_id <=", value, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdIn(List<Integer> values) {
            addCriterion("ign_ity_id in", values, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdNotIn(List<Integer> values) {
            addCriterion("ign_ity_id not in", values, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdBetween(Integer value1, Integer value2) {
            addCriterion("ign_ity_id between", value1, value2, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnItyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ign_ity_id not between", value1, value2, "ignItyId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdIsNull() {
            addCriterion("ign_cag_id is null");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdIsNotNull() {
            addCriterion("ign_cag_id is not null");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdEqualTo(Integer value) {
            addCriterion("ign_cag_id =", value, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdNotEqualTo(Integer value) {
            addCriterion("ign_cag_id <>", value, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdGreaterThan(Integer value) {
            addCriterion("ign_cag_id >", value, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ign_cag_id >=", value, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdLessThan(Integer value) {
            addCriterion("ign_cag_id <", value, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdLessThanOrEqualTo(Integer value) {
            addCriterion("ign_cag_id <=", value, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdIn(List<Integer> values) {
            addCriterion("ign_cag_id in", values, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdNotIn(List<Integer> values) {
            addCriterion("ign_cag_id not in", values, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdBetween(Integer value1, Integer value2) {
            addCriterion("ign_cag_id between", value1, value2, "ignCagId");
            return (Criteria) this;
        }

        public Criteria andIgnCagIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ign_cag_id not between", value1, value2, "ignCagId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}